<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title><?php echo ($title); ?></title>
    <link rel="stylesheet" href="/Public/web/css/pintuer.css">
    <link rel="stylesheet" href="/Public/web/css/admin.css">
    <script src="/Public/web/js/jquery.js"></script>
    <script src="/Public/web/js/pintuer.js"></script>
</head>


<body>
	<style type="text/css">
		table{
			width: 70%;
			margin: 20px auto;
		}
		table td{
			border:1px solid #ccc;
			padding: 10px 2px;
			vertical-align: middle;
			text-align: center;
			font-size:14px;
			color: #333 
		}
	</style>
	
	<div class="panel admin-panel">
		<div class="panel-head"><strong><span class="icon-pencil-square-o"></span> <?php echo L('shouquangl');?></strong></div>
		<div class="body-content">
			<?php if($info): ?><table border="1" cellspacing="0" cellpadding="0">
				<tr>
					<td><b><?php echo L('shouquannichen');?></b></td><td><?php echo ($info['nick_name']); ?></td>
					<td colspan="2">
						<?php if($info['state'] == 1): ?><font color="green"><?php echo L('shouquan01');?></font>
						<?php elseif($info['state'] == 2): ?><font color="blue"><?php echo L('shouquan02');?></font>
						<?php else: ?><font color="red"><?php echo L('shouquan00');?></font><?php endif; ?>
					</td>
				</tr>
				<tr>
					<td><b><?php echo L('shouquanname');?></b></td><td><?php echo ($info['principal_name']); ?></td>
					<td><b><?php echo L('shouquanrenzheng');?></b></td><td><?php if($info['verify_type_info'] == -1): echo L('shouquanwrz'); elseif($info['verify_type_info'] == 0): echo L('shouquanwxrz'); endif; ?></td>
				</tr>
				<tr>
					<td><b><?php echo L('shouquantouxiang');?></b></td><td><?php if(empty($info['head_img'])): ?><img src="/Public/images/zanwu.jpg" height="100px" /><?php else: ?><img src="<?php echo ($info['head_img']); ?>" height="100px" /><?php endif; ?></td>
					<td><b><?php echo L('shouquanewm');?></b></td><td><?php if(empty($info['qrcode_url'])): ?><img src="/Public/images/zanwu.jpg" height="100px" /><?php else: ?><img src="<?php echo ($info['qrcode_url']); ?>" height="100px" /><?php endif; ?></td>
				</tr>
				<tr>
					<td><b><?php echo L('shouquanid');?></b></td><td><?php echo ($info['user_name']); ?></td>
					<td><b><?php echo L('shouquanappid');?></b></td><td><?php echo ($info['authorizer_appid']); ?></td>
				</tr>
				<tr><td><b><?php echo L('shouquanjieshao');?></b></td><td colspan="3"><?php echo ($info['signature']); ?></td></tr>
				<tr><td colspan="4">
					<?php if($info['state'] == 1): ?><a class="button bg-main icon-check-square-o" href="<?php echo U('Accredit/manager');?>"> 管理小程序</a>　
					<a class="button bg-main icon-check-square-o" href="<?php echo U('Accredit/adminer');?>"> 绑定体验者</a>　<?php endif; ?>
					<a class="button bg-red icon-check-square-o" href="<?php echo ($buttonurl); ?>"> <?php echo L('reshouquan');?></a>
				</td></tr>
			</table>
			<?php else: ?>
			<table border="1" cellspacing="0" cellpadding="0">
				<tr><td><a class="button bg-main icon-check-square-o" href="<?php echo ($buttonurl); ?>"> <?php echo L('shouquan');?></a></td></tr>
			</table><?php endif; ?>
		</div>
	</div>
	
</body>

</html>